package com.example.demo.dao;


import com.example.demo.model.Userinfo;
import com.example.demo.model.vo.UserinfoVO;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Controller;

import java.util.List;


@Mapper
public interface UserMapper {


    int reg(Userinfo userinfo);

    Userinfo getUserByName(@Param("username")String username);

    UserinfoVO getUserById(@Param("uid") int uid);
}
